project(tutorial5)
 
find_package(KDE4 REQUIRED)
include_directories(${KDE4_INCLUDES})

set(eureka_SRCS 
  src/main.cpp
  src/mainwindow.cpp
  src/page.cpp
)
 
kde4_add_executable(eureka ${eureka_SRCS})
 
target_link_libraries(eureka ${KDE4_KDEUI_LIBS}
                                ${KDE4_KIO_LIBS}
				${KDE4_KPARTS_LIBS}
				${KDE4_KROSSUI_LIBS}
				${KDE4_SOLID_LIBS}
				-lplasma)
 
install(TARGETS eureka DESTINATION ${BIN_INSTALL_DIR})
install(FILES src/eurekaui.rc 
        DESTINATION ${DATA_INSTALL_DIR}/eureka)
install(FILES eureka.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
install(FILES eurekaplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})

